package com.ry.servcie;

import com.ry.pojo.Item;
import com.ry.pojo.Size;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class TestItemImpl implements TestItem {
    @Override
    public Item getitem(Long itemId) {
        List<Size> sizes = new ArrayList<>();
        sizes.add(new Size(1,"红色"));
        sizes.add(new Size(2,"黑色"));
        sizes.add(new Size(3,"蓝色"));
        sizes.add(new Size(4,"绿色"));
        return new Item(itemId,"欧莱雅"+itemId,"欧莱雅系列"+itemId,100l,"/images/banner.jpg",sizes,100l,"欧莱雅公司","/images/banner.jpg");
    }
}
